﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Refugees.Repositories
{
    internal class TypeOfHelpRepository : ModelRepository
    {
        internal Models.TypeOfHelp GetTypeOfHelp(string type)
        {
            return Context.TypeOfHelp.FirstOrDefault(i => i.Name == type);
        }

        internal Models.TypeOfHelp GetTypeOfHelp(int id)
        {
            return Context.TypeOfHelp.FirstOrDefault(i => i.IdType == id);
        }
    }
}
